package com.juanran.web.controller;


import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/menglongdeyeController")
@Api(value = "朦胧的夜的测试接口")
public class userController {
    @ResponseBody
    @RequestMapping(value ="/test1", method= RequestMethod.GET)
    @ApiOperation(value="单独一个入参测试接口", notes="接口描述，例如：只能输入‘朦胧的夜’")
    @ApiImplicitParam(paramType="query", name = "blogName", value = "博客名称", required = true, dataType = "String",defaultValue = "朦胧的夜")
    public String test1(@RequestParam String blogName){
        if("朦胧的夜".equals(blogName)){
            return "对了！！！";
        }else{
            return "错了！！！";
        }

    }
}
